﻿function GetReport(rptName, format, pageurl, reportHostPage)
{    
    if (rptName != '')
    {        
        var s = reportHostPage + "?rpt=" + rptName + "&fmt="+ format + "&pageUrl=" + pageurl;        
        var hiddenSearchCriteria = document.getElementById("hiddenSearchCriteria");
        
        if (hiddenSearchCriteria != null)
        {
			s = s + "&searchParameters=" + hiddenSearchCriteria.getAttribute("value");
		}
        
        var win = window.open(s, "", "menubar=0, resizable=1, width='800', height='600'");   

        return false;
    }    
    
    return true;    
}

